\hypertarget{classmdp__site}{
\section{mdp\_\-site Class Reference}
\label{classmdp__site}\index{mdp\_\-site@{mdp\_\-site}}
}


site object to loop on a lattice  


{\ttfamily \#include $<$mdp\_\-site.h$>$}\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classmdp__site_a9c6937993f8faf46420b724f03f3649d}{mdp\_\-site} ()
\begin{DoxyCompactList}\small\item\em value of the \hyperlink{classmdp__site}{mdp\_\-site} in local coordinate \item\end{DoxyCompactList}\item 
\hyperlink{classmdp__site_ab61e8e96573d58449ee28b9505ca799b}{mdp\_\-site} (const \hyperlink{classmdp__lattice}{mdp\_\-lattice} \&a)
\item 
void \hyperlink{classmdp__site_a6342ca7fb3edaef8b09854ca98399fa4}{on} (const \hyperlink{classmdp__lattice}{mdp\_\-lattice} \&a)
\item 
\hyperlink{classmdp__lattice}{mdp\_\-lattice} \& \hyperlink{classmdp__site_aae3a1de2fd7fafccbd1d6bd971c908c4}{lattice} ()
\begin{DoxyCompactList}\small\item\em returns by reference the lattice the site lives on \item\end{DoxyCompactList}\item 
\hyperlink{classmdp__site_a6bde992431323419da31c2ce584d7821}{mdp\_\-site} (\hyperlink{mdp__global__vars_8h_aaa1ad9d0dcd2124aa5af0120d9954174}{mdp\_\-int} i, \hyperlink{classmdp__lattice}{mdp\_\-lattice} $\ast$ptr2)
\item 
\hyperlink{classmdp__site_aa16c96d8e1013d1581df1ae3a980d272}{mdp\_\-site} (const \hyperlink{classmdp__site}{mdp\_\-site} \&x)
\item 
\hyperlink{classmdp__site}{mdp\_\-site} \hyperlink{classmdp__site_ab54108d3429bf4edb3d2434545a425c2}{operator=} (\hyperlink{mdp__global__vars_8h_aaa1ad9d0dcd2124aa5af0120d9954174}{mdp\_\-int} i)
\item 
\hyperlink{classmdp__site}{mdp\_\-site} \hyperlink{classmdp__site_aee55a3c862cb667839be5febd37b1791}{operator=} (\hyperlink{classmdp__site}{mdp\_\-site} x)
\item 
int \hyperlink{classmdp__site_a171afa9aeee40776c4ee8405fba525aa}{operator==} (\hyperlink{classmdp__site}{mdp\_\-site} x)
\item 
int \hyperlink{classmdp__site_af393fef955cb91629ece72746a582236}{operator!=} (\hyperlink{classmdp__site}{mdp\_\-site} x)
\item 
void \hyperlink{classmdp__site_a67f09ac8f2c14dc4461120244443532e}{start} (int np=0)
\item 
void \hyperlink{classmdp__site_a19445777d77aaf38ff3bd15d48c7c683}{next} ()
\item 
int \hyperlink{classmdp__site_a57ff5d47780a90ad36c9368360ad2d89}{is\_\-in} ()
\item 
int \hyperlink{classmdp__site_a1457471b74c722514712f1efb1093f63}{is\_\-here} ()
\item 
int \hyperlink{classmdp__site_a0b36dc1179dac2b0737dda900f135194}{parity} ()
\begin{DoxyCompactList}\small\item\em returns the parity EVEN or ODD of the site \item\end{DoxyCompactList}\item 
int \hyperlink{classmdp__site_a57188578cccbd53d6ff5ef5b791d32a4}{is\_\-in\_\-boundary} ()
\item 
\hyperlink{mdp__global__vars_8h_aaa1ad9d0dcd2124aa5af0120d9954174}{mdp\_\-int} \hyperlink{classmdp__site_a4a19d418044e9bf5e285998676df6f43}{local\_\-index} ()
\item 
\hyperlink{mdp__global__vars_8h_aaa1ad9d0dcd2124aa5af0120d9954174}{mdp\_\-int} \hyperlink{classmdp__site_aff34724d521041f255daf4fad09a0408}{global\_\-index} ()
\begin{DoxyCompactList}\small\item\em returns the global (unique) index of the site \item\end{DoxyCompactList}\item 
void \hyperlink{classmdp__site_a9545484331e101ce177d0877df305cbe}{set\_\-local} (\hyperlink{mdp__global__vars_8h_aaa1ad9d0dcd2124aa5af0120d9954174}{mdp\_\-int} idx2)
\begin{DoxyCompactList}\small\item\em sets the site by its local index (dangerous) \item\end{DoxyCompactList}\item 
void \hyperlink{classmdp__site_ad0b34065c28aa0abaaf5b742b459bc77}{set\_\-global} (\hyperlink{mdp__global__vars_8h_aaa1ad9d0dcd2124aa5af0120d9954174}{mdp\_\-int} idx\_\-gl)
\begin{DoxyCompactList}\small\item\em sets the site by its global index \item\end{DoxyCompactList}\item 
\hyperlink{classmdp__site}{mdp\_\-site} \hyperlink{classmdp__site_a86993407e982dc5dbc92cca7dfdaa536}{operator+} (int mu)
\begin{DoxyCompactList}\small\item\em returns the site shifted forward in direction mu=(0...ndim-\/1) \item\end{DoxyCompactList}\item 
\hyperlink{classmdp__site}{mdp\_\-site} \hyperlink{classmdp__site_a3dceebe7dec6a488314064cee7ef8d80}{operator-\/} (int mu)
\begin{DoxyCompactList}\small\item\em returns the site shifted backwards in direction mu=(0...ndim-\/1) \item\end{DoxyCompactList}\item 
\hyperlink{classmdp__site}{mdp\_\-site} \hyperlink{classmdp__site_a5982cae4c0bf2c255a978529dc6afe6c}{hop} (int i, int mu)
\item 
\hyperlink{classmdp__site}{mdp\_\-site} \hyperlink{classmdp__site_aa4931841d551417b526a2d2d22751471}{operator=} (\hyperlink{classmdp__vector}{mdp\_\-vector} v)
\begin{DoxyCompactList}\small\item\em sets the site to the coordinates stored in vector v \item\end{DoxyCompactList}\item 
\hyperlink{classmdp__site}{mdp\_\-site} \hyperlink{classmdp__site_a5fc9e1550603644416108c92cbf3cab8}{operator+} (\hyperlink{classmdp__vector}{mdp\_\-vector} v)
\item 
\hyperlink{classmdp__site}{mdp\_\-site} \hyperlink{classmdp__site_a20d26e5db480233e64bde96eb67180fc}{operator-\/} (\hyperlink{classmdp__vector}{mdp\_\-vector} v)
\item 
int \hyperlink{classmdp__site_abbbb7f94657ed5112919578d63a3272c}{operator()} (int mu)
\begin{DoxyCompactList}\small\item\em returns mu coordinate of the site \item\end{DoxyCompactList}\item 
void \hyperlink{classmdp__site_a8cf72becd9e8d125b31a5a40862bfa5a}{operator=} (int $\ast$x)
\item 
void \hyperlink{classmdp__site_a241eb259576cbe7354d1ff714d22416c}{set} (int x0, int x1=0, int x2=0, int x3=0, int x4=0, int x5=0, int x6=0, int x7=0, int x8=0, int x9=0)
\item 
int \hyperlink{classmdp__site_af311165eb929fe7cf2957742009590b9}{operator==} (int $\ast$x)
\item 
int \hyperlink{classmdp__site_a424ed9f2670e12a0a3fe521070fc5d41}{operator!=} (int $\ast$x)
\item 
int \hyperlink{classmdp__site_a0bf9ef3d304245c68e00d7b66886f020}{is\_\-equal} (int x0, int x1=0, int x2=0, int x3=0, int x4=0, int x5=0, int x6=0, int x7=0, int x8=0, int x9=0)
\begin{DoxyCompactList}\small\item\em checks the site coordinates vs the coordinates passed as args \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{mdp__global__vars_8h_aaa1ad9d0dcd2124aa5af0120d9954174}{mdp\_\-int} \hyperlink{classmdp__site_a28354e929a397ee9b0030abe2583b29b}{idx}
\begin{DoxyCompactList}\small\item\em this points to the lattice for this field \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hyperlink{mdp__global__vars_8h_aaa1ad9d0dcd2124aa5af0120d9954174}{mdp\_\-int} \hyperlink{classmdp__site_a03c9871dd1382a293be5394fafda9718}{site2binary} (\hyperlink{classmdp__site}{mdp\_\-site} x)
\item 
int \hyperlink{classmdp__site_ac96405ecdb78dc33d55edea04876a931}{on\_\-which\_\-process} (\hyperlink{classmdp__lattice}{mdp\_\-lattice} \&a, int x0, int x1, int x2, int x3, int x4, int x5, int x6, int x7, int x8, int x9)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
site object to loop on a lattice Example: \begin{DoxyVerb}
///   int box[]={10,10,10};
///   mdp_lattice lattice(3,box);
///   mdp_site x(lattice);
///   forallsites(x) cout << x << endl;
///   if(on_which_process(lattice,1,1,1)==ME) {
///      x.set(1,1,1);
///      cout << lattice.random(x).plain() << endl;
///   }
/// \end{DoxyVerb}
 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classmdp__site_a9c6937993f8faf46420b724f03f3649d}{
\index{mdp\_\-site@{mdp\_\-site}!mdp\_\-site@{mdp\_\-site}}
\index{mdp\_\-site@{mdp\_\-site}!mdp_site@{mdp\_\-site}}
\subsubsection[{mdp\_\-site}]{\setlength{\rightskip}{0pt plus 5cm}mdp\_\-site::mdp\_\-site ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a9c6937993f8faf46420b724f03f3649d}


value of the \hyperlink{classmdp__site}{mdp\_\-site} in local coordinate \hypertarget{classmdp__site_ab61e8e96573d58449ee28b9505ca799b}{
\index{mdp\_\-site@{mdp\_\-site}!mdp\_\-site@{mdp\_\-site}}
\index{mdp\_\-site@{mdp\_\-site}!mdp_site@{mdp\_\-site}}
\subsubsection[{mdp\_\-site}]{\setlength{\rightskip}{0pt plus 5cm}mdp\_\-site::mdp\_\-site (const {\bf mdp\_\-lattice} \& {\em a})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_ab61e8e96573d58449ee28b9505ca799b}
declares object of class \hyperlink{classmdp__site}{mdp\_\-site} living on the lattice passed by reference \hypertarget{classmdp__site_a6bde992431323419da31c2ce584d7821}{
\index{mdp\_\-site@{mdp\_\-site}!mdp\_\-site@{mdp\_\-site}}
\index{mdp\_\-site@{mdp\_\-site}!mdp_site@{mdp\_\-site}}
\subsubsection[{mdp\_\-site}]{\setlength{\rightskip}{0pt plus 5cm}mdp\_\-site::mdp\_\-site ({\bf mdp\_\-int} {\em i}, \/  {\bf mdp\_\-lattice} $\ast$ {\em ptr2})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a6bde992431323419da31c2ce584d7821}
\hypertarget{classmdp__site_aa16c96d8e1013d1581df1ae3a980d272}{
\index{mdp\_\-site@{mdp\_\-site}!mdp\_\-site@{mdp\_\-site}}
\index{mdp\_\-site@{mdp\_\-site}!mdp_site@{mdp\_\-site}}
\subsubsection[{mdp\_\-site}]{\setlength{\rightskip}{0pt plus 5cm}mdp\_\-site::mdp\_\-site (const {\bf mdp\_\-site} \& {\em x})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_aa16c96d8e1013d1581df1ae3a980d272}


\subsection{Member Function Documentation}
\hypertarget{classmdp__site_aff34724d521041f255daf4fad09a0408}{
\index{mdp\_\-site@{mdp\_\-site}!global\_\-index@{global\_\-index}}
\index{global\_\-index@{global\_\-index}!mdp_site@{mdp\_\-site}}
\subsubsection[{global\_\-index}]{\setlength{\rightskip}{0pt plus 5cm}{\bf mdp\_\-int} mdp\_\-site::global\_\-index ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_aff34724d521041f255daf4fad09a0408}


returns the global (unique) index of the site \hypertarget{classmdp__site_a5982cae4c0bf2c255a978529dc6afe6c}{
\index{mdp\_\-site@{mdp\_\-site}!hop@{hop}}
\index{hop@{hop}!mdp_site@{mdp\_\-site}}
\subsubsection[{hop}]{\setlength{\rightskip}{0pt plus 5cm}{\bf mdp\_\-site} mdp\_\-site::hop (int {\em i}, \/  int {\em mu})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a5982cae4c0bf2c255a978529dc6afe6c}
returns a site shifted i position (backwards if i$<$0 or forward if i$>$0) in direction mu=(0...mdim-\/1) \hypertarget{classmdp__site_a0bf9ef3d304245c68e00d7b66886f020}{
\index{mdp\_\-site@{mdp\_\-site}!is\_\-equal@{is\_\-equal}}
\index{is\_\-equal@{is\_\-equal}!mdp_site@{mdp\_\-site}}
\subsubsection[{is\_\-equal}]{\setlength{\rightskip}{0pt plus 5cm}int mdp\_\-site::is\_\-equal (int {\em x0}, \/  int {\em x1} = {\ttfamily 0}, \/  int {\em x2} = {\ttfamily 0}, \/  int {\em x3} = {\ttfamily 0}, \/  int {\em x4} = {\ttfamily 0}, \/  int {\em x5} = {\ttfamily 0}, \/  int {\em x6} = {\ttfamily 0}, \/  int {\em x7} = {\ttfamily 0}, \/  int {\em x8} = {\ttfamily 0}, \/  int {\em x9} = {\ttfamily 0})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a0bf9ef3d304245c68e00d7b66886f020}


checks the site coordinates vs the coordinates passed as args \hypertarget{classmdp__site_a1457471b74c722514712f1efb1093f63}{
\index{mdp\_\-site@{mdp\_\-site}!is\_\-here@{is\_\-here}}
\index{is\_\-here@{is\_\-here}!mdp_site@{mdp\_\-site}}
\subsubsection[{is\_\-here}]{\setlength{\rightskip}{0pt plus 5cm}int mdp\_\-site::is\_\-here ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a1457471b74c722514712f1efb1093f63}
checks if the site is inside the portion of the lattice stored by the current process or if the site is in a local copy of a remote site \hypertarget{classmdp__site_a57ff5d47780a90ad36c9368360ad2d89}{
\index{mdp\_\-site@{mdp\_\-site}!is\_\-in@{is\_\-in}}
\index{is\_\-in@{is\_\-in}!mdp_site@{mdp\_\-site}}
\subsubsection[{is\_\-in}]{\setlength{\rightskip}{0pt plus 5cm}int mdp\_\-site::is\_\-in ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a57ff5d47780a90ad36c9368360ad2d89}
checks if the site is inside the portion of the lattice stored by the current process \hypertarget{classmdp__site_a57188578cccbd53d6ff5ef5b791d32a4}{
\index{mdp\_\-site@{mdp\_\-site}!is\_\-in\_\-boundary@{is\_\-in\_\-boundary}}
\index{is\_\-in\_\-boundary@{is\_\-in\_\-boundary}!mdp_site@{mdp\_\-site}}
\subsubsection[{is\_\-in\_\-boundary}]{\setlength{\rightskip}{0pt plus 5cm}int mdp\_\-site::is\_\-in\_\-boundary ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a57188578cccbd53d6ff5ef5b791d32a4}
true if the site is stored locally as a copy of a site local in another process \hypertarget{classmdp__site_aae3a1de2fd7fafccbd1d6bd971c908c4}{
\index{mdp\_\-site@{mdp\_\-site}!lattice@{lattice}}
\index{lattice@{lattice}!mdp_site@{mdp\_\-site}}
\subsubsection[{lattice}]{\setlength{\rightskip}{0pt plus 5cm}{\bf mdp\_\-lattice}\& mdp\_\-site::lattice ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_aae3a1de2fd7fafccbd1d6bd971c908c4}


returns by reference the lattice the site lives on \hypertarget{classmdp__site_a4a19d418044e9bf5e285998676df6f43}{
\index{mdp\_\-site@{mdp\_\-site}!local\_\-index@{local\_\-index}}
\index{local\_\-index@{local\_\-index}!mdp_site@{mdp\_\-site}}
\subsubsection[{local\_\-index}]{\setlength{\rightskip}{0pt plus 5cm}{\bf mdp\_\-int} mdp\_\-site::local\_\-index ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a4a19d418044e9bf5e285998676df6f43}
returns the local index of the site local index is assigned by the process to the local sites and copies of remote sites. local index is not unique thoughout the lattice. \hypertarget{classmdp__site_a19445777d77aaf38ff3bd15d48c7c683}{
\index{mdp\_\-site@{mdp\_\-site}!next@{next}}
\index{next@{next}!mdp_site@{mdp\_\-site}}
\subsubsection[{next}]{\setlength{\rightskip}{0pt plus 5cm}void mdp\_\-site::next ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a19445777d77aaf38ff3bd15d48c7c683}
\hypertarget{classmdp__site_a6342ca7fb3edaef8b09854ca98399fa4}{
\index{mdp\_\-site@{mdp\_\-site}!on@{on}}
\index{on@{on}!mdp_site@{mdp\_\-site}}
\subsubsection[{on}]{\setlength{\rightskip}{0pt plus 5cm}void mdp\_\-site::on (const {\bf mdp\_\-lattice} \& {\em a})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a6342ca7fb3edaef8b09854ca98399fa4}
\hypertarget{classmdp__site_a424ed9f2670e12a0a3fe521070fc5d41}{
\index{mdp\_\-site@{mdp\_\-site}!operator!=@{operator!=}}
\index{operator!=@{operator!=}!mdp_site@{mdp\_\-site}}
\subsubsection[{operator!=}]{\setlength{\rightskip}{0pt plus 5cm}int mdp\_\-site::operator!= (int $\ast$ {\em x})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a424ed9f2670e12a0a3fe521070fc5d41}
\hypertarget{classmdp__site_af393fef955cb91629ece72746a582236}{
\index{mdp\_\-site@{mdp\_\-site}!operator!=@{operator!=}}
\index{operator!=@{operator!=}!mdp_site@{mdp\_\-site}}
\subsubsection[{operator!=}]{\setlength{\rightskip}{0pt plus 5cm}int mdp\_\-site::operator!= ({\bf mdp\_\-site} {\em x})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_af393fef955cb91629ece72746a582236}
\hypertarget{classmdp__site_abbbb7f94657ed5112919578d63a3272c}{
\index{mdp\_\-site@{mdp\_\-site}!operator()@{operator()}}
\index{operator()@{operator()}!mdp_site@{mdp\_\-site}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}int mdp\_\-site::operator() (int {\em mu})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_abbbb7f94657ed5112919578d63a3272c}


returns mu coordinate of the site \hypertarget{classmdp__site_a5fc9e1550603644416108c92cbf3cab8}{
\index{mdp\_\-site@{mdp\_\-site}!operator+@{operator+}}
\index{operator+@{operator+}!mdp_site@{mdp\_\-site}}
\subsubsection[{operator+}]{\setlength{\rightskip}{0pt plus 5cm}{\bf mdp\_\-site} mdp\_\-site::operator+ ({\bf mdp\_\-vector} {\em v})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a5fc9e1550603644416108c92cbf3cab8}
retruns a site similar to the present but each coordinates mu of the site shifted according to v\mbox{[}mu\mbox{]} \hypertarget{classmdp__site_a86993407e982dc5dbc92cca7dfdaa536}{
\index{mdp\_\-site@{mdp\_\-site}!operator+@{operator+}}
\index{operator+@{operator+}!mdp_site@{mdp\_\-site}}
\subsubsection[{operator+}]{\setlength{\rightskip}{0pt plus 5cm}{\bf mdp\_\-site} mdp\_\-site::operator+ (int {\em mu})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a86993407e982dc5dbc92cca7dfdaa536}


returns the site shifted forward in direction mu=(0...ndim-\/1) \hypertarget{classmdp__site_a20d26e5db480233e64bde96eb67180fc}{
\index{mdp\_\-site@{mdp\_\-site}!operator-\/@{operator-\/}}
\index{operator-\/@{operator-\/}!mdp_site@{mdp\_\-site}}
\subsubsection[{operator-\/}]{\setlength{\rightskip}{0pt plus 5cm}{\bf mdp\_\-site} mdp\_\-site::operator-\/ ({\bf mdp\_\-vector} {\em v})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a20d26e5db480233e64bde96eb67180fc}
retruns a site similar to the present but each coordinates mu of the site shifted according to -\/v\mbox{[}mu\mbox{]} \hypertarget{classmdp__site_a3dceebe7dec6a488314064cee7ef8d80}{
\index{mdp\_\-site@{mdp\_\-site}!operator-\/@{operator-\/}}
\index{operator-\/@{operator-\/}!mdp_site@{mdp\_\-site}}
\subsubsection[{operator-\/}]{\setlength{\rightskip}{0pt plus 5cm}{\bf mdp\_\-site} mdp\_\-site::operator-\/ (int {\em mu})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a3dceebe7dec6a488314064cee7ef8d80}


returns the site shifted backwards in direction mu=(0...ndim-\/1) \hypertarget{classmdp__site_a8cf72becd9e8d125b31a5a40862bfa5a}{
\index{mdp\_\-site@{mdp\_\-site}!operator=@{operator=}}
\index{operator=@{operator=}!mdp_site@{mdp\_\-site}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}void mdp\_\-site::operator= (int $\ast$ {\em x})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a8cf72becd9e8d125b31a5a40862bfa5a}
\hypertarget{classmdp__site_aa4931841d551417b526a2d2d22751471}{
\index{mdp\_\-site@{mdp\_\-site}!operator=@{operator=}}
\index{operator=@{operator=}!mdp_site@{mdp\_\-site}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf mdp\_\-site} mdp\_\-site::operator= ({\bf mdp\_\-vector} {\em v})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_aa4931841d551417b526a2d2d22751471}


sets the site to the coordinates stored in vector v \hypertarget{classmdp__site_aee55a3c862cb667839be5febd37b1791}{
\index{mdp\_\-site@{mdp\_\-site}!operator=@{operator=}}
\index{operator=@{operator=}!mdp_site@{mdp\_\-site}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf mdp\_\-site} mdp\_\-site::operator= ({\bf mdp\_\-site} {\em x})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_aee55a3c862cb667839be5febd37b1791}
\hypertarget{classmdp__site_ab54108d3429bf4edb3d2434545a425c2}{
\index{mdp\_\-site@{mdp\_\-site}!operator=@{operator=}}
\index{operator=@{operator=}!mdp_site@{mdp\_\-site}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf mdp\_\-site} mdp\_\-site::operator= ({\bf mdp\_\-int} {\em i})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_ab54108d3429bf4edb3d2434545a425c2}
\hypertarget{classmdp__site_af311165eb929fe7cf2957742009590b9}{
\index{mdp\_\-site@{mdp\_\-site}!operator==@{operator==}}
\index{operator==@{operator==}!mdp_site@{mdp\_\-site}}
\subsubsection[{operator==}]{\setlength{\rightskip}{0pt plus 5cm}int mdp\_\-site::operator== (int $\ast$ {\em x})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_af311165eb929fe7cf2957742009590b9}
\hypertarget{classmdp__site_a171afa9aeee40776c4ee8405fba525aa}{
\index{mdp\_\-site@{mdp\_\-site}!operator==@{operator==}}
\index{operator==@{operator==}!mdp_site@{mdp\_\-site}}
\subsubsection[{operator==}]{\setlength{\rightskip}{0pt plus 5cm}int mdp\_\-site::operator== ({\bf mdp\_\-site} {\em x})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a171afa9aeee40776c4ee8405fba525aa}
\hypertarget{classmdp__site_a0b36dc1179dac2b0737dda900f135194}{
\index{mdp\_\-site@{mdp\_\-site}!parity@{parity}}
\index{parity@{parity}!mdp_site@{mdp\_\-site}}
\subsubsection[{parity}]{\setlength{\rightskip}{0pt plus 5cm}int mdp\_\-site::parity ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a0b36dc1179dac2b0737dda900f135194}


returns the parity EVEN or ODD of the site \hypertarget{classmdp__site_a241eb259576cbe7354d1ff714d22416c}{
\index{mdp\_\-site@{mdp\_\-site}!set@{set}}
\index{set@{set}!mdp_site@{mdp\_\-site}}
\subsubsection[{set}]{\setlength{\rightskip}{0pt plus 5cm}void mdp\_\-site::set (int {\em x0}, \/  int {\em x1} = {\ttfamily 0}, \/  int {\em x2} = {\ttfamily 0}, \/  int {\em x3} = {\ttfamily 0}, \/  int {\em x4} = {\ttfamily 0}, \/  int {\em x5} = {\ttfamily 0}, \/  int {\em x6} = {\ttfamily 0}, \/  int {\em x7} = {\ttfamily 0}, \/  int {\em x8} = {\ttfamily 0}, \/  int {\em x9} = {\ttfamily 0})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a241eb259576cbe7354d1ff714d22416c}
sets the site to a the location spacified by the coordinates and assumes the site is local (or at least a copy) \begin{DoxySeeAlso}{See also}
\hyperlink{classmdp__site_ac96405ecdb78dc33d55edea04876a931}{on\_\-which\_\-process()} 
\end{DoxySeeAlso}
\hypertarget{classmdp__site_ad0b34065c28aa0abaaf5b742b459bc77}{
\index{mdp\_\-site@{mdp\_\-site}!set\_\-global@{set\_\-global}}
\index{set\_\-global@{set\_\-global}!mdp_site@{mdp\_\-site}}
\subsubsection[{set\_\-global}]{\setlength{\rightskip}{0pt plus 5cm}void mdp\_\-site::set\_\-global ({\bf mdp\_\-int} {\em idx\_\-gl})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_ad0b34065c28aa0abaaf5b742b459bc77}


sets the site by its global index \hypertarget{classmdp__site_a9545484331e101ce177d0877df305cbe}{
\index{mdp\_\-site@{mdp\_\-site}!set\_\-local@{set\_\-local}}
\index{set\_\-local@{set\_\-local}!mdp_site@{mdp\_\-site}}
\subsubsection[{set\_\-local}]{\setlength{\rightskip}{0pt plus 5cm}void mdp\_\-site::set\_\-local ({\bf mdp\_\-int} {\em idx2})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a9545484331e101ce177d0877df305cbe}


sets the site by its local index (dangerous) \hypertarget{classmdp__site_a67f09ac8f2c14dc4461120244443532e}{
\index{mdp\_\-site@{mdp\_\-site}!start@{start}}
\index{start@{start}!mdp_site@{mdp\_\-site}}
\subsubsection[{start}]{\setlength{\rightskip}{0pt plus 5cm}void mdp\_\-site::start (int {\em np} = {\ttfamily 0})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classmdp__site_a67f09ac8f2c14dc4461120244443532e}


\subsection{Friends And Related Function Documentation}
\hypertarget{classmdp__site_ac96405ecdb78dc33d55edea04876a931}{
\index{mdp\_\-site@{mdp\_\-site}!on\_\-which\_\-process@{on\_\-which\_\-process}}
\index{on\_\-which\_\-process@{on\_\-which\_\-process}!mdp_site@{mdp\_\-site}}
\subsubsection[{on\_\-which\_\-process}]{\setlength{\rightskip}{0pt plus 5cm}int on\_\-which\_\-process ({\bf mdp\_\-lattice} \& {\em a}, \/  int {\em x0}, \/  int {\em x1}, \/  int {\em x2}, \/  int {\em x3}, \/  int {\em x4}, \/  int {\em x5}, \/  int {\em x6}, \/  int {\em x7}, \/  int {\em x8}, \/  int {\em x9})\hspace{0.3cm}{\ttfamily  \mbox{[}friend\mbox{]}}}}
\label{classmdp__site_ac96405ecdb78dc33d55edea04876a931}
checks which process of the lattice a stores locally the site of coordinates x0,x1,x2,...,x9 to be used before calling \hyperlink{classmdp__site_a241eb259576cbe7354d1ff714d22416c}{mdp\_\-site::set()}

checks which process of the lattice a stores locally the site of coordinates x0,x1,x2,...,x9 to be used before calling \hyperlink{classmdp__site_a241eb259576cbe7354d1ff714d22416c}{mdp\_\-site::set()} (note: prototyping of friend functions is required by some compilers) \hypertarget{classmdp__site_a03c9871dd1382a293be5394fafda9718}{
\index{mdp\_\-site@{mdp\_\-site}!site2binary@{site2binary}}
\index{site2binary@{site2binary}!mdp_site@{mdp\_\-site}}
\subsubsection[{site2binary}]{\setlength{\rightskip}{0pt plus 5cm}{\bf mdp\_\-int} site2binary ({\bf mdp\_\-site} {\em x})\hspace{0.3cm}{\ttfamily  \mbox{[}friend\mbox{]}}}}
\label{classmdp__site_a03c9871dd1382a293be5394fafda9718}
converts a site into a binary number to be used only if the site is a vertex of an hypercube centered at the origin. this is used to make staggered mesons 

\subsection{Member Data Documentation}
\hypertarget{classmdp__site_a28354e929a397ee9b0030abe2583b29b}{
\index{mdp\_\-site@{mdp\_\-site}!idx@{idx}}
\index{idx@{idx}!mdp_site@{mdp\_\-site}}
\subsubsection[{idx}]{\setlength{\rightskip}{0pt plus 5cm}{\bf mdp\_\-int} {\bf mdp\_\-site::idx}}}
\label{classmdp__site_a28354e929a397ee9b0030abe2583b29b}


this points to the lattice for this field 

The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
/Users/mdipierro/fermiqcd/development/Libraries/\hyperlink{mdp__site_8h}{mdp\_\-site.h}\end{DoxyCompactItemize}
